import 'element-plus/dist/index.css'
import './assets/main.css'
import 'vxe-table/lib/style.css'
import 'vxe-pc-ui/lib/style.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import 'virtual:uno.css'
import App from './App.vue'
import router from './router'
import './router/routerGuard.ts'
import { registerGlobalComponents } from '@/components/global/index.ts'
import { registerIcon } from '@/components/global/icons/svg/index.ts'
import { registerGlobalDirectives } from '@/directive/index.ts'
import VxeTable from 'vxe-table'
import VxeUI from 'vxe-pc-ui'

const app = createApp(App)

app.use(VxeUI)
app.use(VxeTable)
app.use(createPinia())
app.use(router)

// 注册全局组件
registerGlobalComponents(app)
// 注册全局图标
registerIcon()
// 注册全局指令
registerGlobalDirectives(app)

app.mount('#app')
